Package com.cisco.pt.ipc.sim.pdu.impl
Class DNSResourceRecordImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCDataImpl
com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
com.cisco.pt.ipc.sim.pdu.impl.PduImpl
com.cisco.pt.ipc.sim.pdu.impl.DNSResourceRecordImpl
- All Implemented Interfaces:
IPCData,DNSResourceRecord,Pdu,Signal
- Direct Known Subclasses:
DNSRrAImpl,DNSRrAv6Impl,DNSRrCnameImpl,DNSRrNsImpl,DNSRrSoaImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected booleanprotected intprotected Stringprotected intprotected intprotected ResourceRecordTypeFields inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
fieldNames, fieldTable, signalType, typeTable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencodeTypeAndPayload(EncodedBuffer buffer) getFieldType(String fieldName) booleanintgetName()intintgetTtl()getType()voidpduRead(EncodedBuffer buffer) voidread(EncodedBuffer buffer) Reads this object from an EncodedBuffer of raw datavoidsetDateTime(String dateTime) voidsetIsAnsRecord(boolean isAnsRecord) voidsetLength(int length) voidvoidsetRecordClass(int recordClass) voidsetTtl(int ttl) voidsetType(ResourceRecordType type) Methods inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
getFieldValueMethods inherited from class com.cisco.pt.ipc.impl.IPCDataImpl
checkType, pduReadBoolean, pduReadByte, pduReadDouble, pduReadFloat, pduReadInt, pduReadIPAddress, pduReadIPCData, pduReadIPV6Address, pduReadLong, pduReadMACAddress, pduReadPair, pduReadQString, pduReadShort, pduReadString, pduReadUUID, pduReadVector, readBoolean, readByte, readDouble, readFloat, readInt, readIPAddress, readIPCData, readIPV6Address, readLong, readMACAddress, readPair, readQString, readShort, readString, readUUID, readVectorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.sim.pdu.Signal
getFieldValue
-
Field Details
-
name
-
type
-
recordClass
protected int recordClass -
ttl
protected int ttl -
length
protected int length -
dateTime
-
isAnsRecord
protected boolean isAnsRecord
-
-
Constructor Details
-
DNSResourceRecordImpl
public DNSResourceRecordImpl()
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceDNSResourceRecord- Returns:
- String Returns a String
-
setName
- Specified by:
setNamein interfaceDNSResourceRecord- Parameters:
name- Takes in a parameter of name
-
getType
- Specified by:
getTypein interfaceDNSResourceRecord- Returns:
- ResourceRecordType Returns a ResourceRecordType
-
setType
- Specified by:
setTypein interfaceDNSResourceRecord- Parameters:
type- Takes in a parameter of type
-
getRecordClass
public int getRecordClass()- Specified by:
getRecordClassin interfaceDNSResourceRecord- Returns:
- int Returns a int
-
setRecordClass
public void setRecordClass(int recordClass) - Specified by:
setRecordClassin interfaceDNSResourceRecord- Parameters:
recordClass- Takes in a parameter of recordClass
-
getTtl
public int getTtl()- Specified by:
getTtlin interfaceDNSResourceRecord- Returns:
- int Returns a int
-
setTtl
public void setTtl(int ttl) - Specified by:
setTtlin interfaceDNSResourceRecord- Parameters:
ttl- Takes in a parameter of ttl
-
getLength
public int getLength()- Specified by:
getLengthin interfaceDNSResourceRecord- Returns:
- int Returns a int
-
setLength
public void setLength(int length) - Specified by:
setLengthin interfaceDNSResourceRecord- Parameters:
length- Takes in a parameter of length
-
getDateTime
- Specified by:
getDateTimein interfaceDNSResourceRecord- Returns:
- String Returns a String
-
setDateTime
- Specified by:
setDateTimein interfaceDNSResourceRecord- Parameters:
dateTime- Takes in a parameter of dateTime
-
getIsAnsRecord
public boolean getIsAnsRecord()- Specified by:
getIsAnsRecordin interfaceDNSResourceRecord- Returns:
- boolean Returns a boolean
-
setIsAnsRecord
public void setIsAnsRecord(boolean isAnsRecord) - Specified by:
setIsAnsRecordin interfaceDNSResourceRecord- Parameters:
isAnsRecord- Takes in a parameter of isAnsRecord
-
getFieldType
- Overrides:
getFieldTypein classPduImpl
-
read
Reads this object from an EncodedBuffer of raw data -
pduRead
-
getOrderedFieldNames
- Specified by:
getOrderedFieldNamesin interfaceSignal- Overrides:
getOrderedFieldNamesin classPduImpl
-
encodeTypeAndPayload
- Specified by:
encodeTypeAndPayloadin interfaceSignal- Overrides:
encodeTypeAndPayloadin classPduImpl
-